package com.agile.major.service;

import com.agile.major.domain.TraningDataHistory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Service Interface for managing TraningDataHistory.
 */
public interface TraningDataHistoryService {

    /**
     * Save a traningDataHistory.
     *
     * @param traningDataHistory the entity to save
     * @return the persisted entity
     */
    TraningDataHistory save(TraningDataHistory traningDataHistory);

    /**
     *  Get all the traningDataHistories.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<TraningDataHistory> findAll(Pageable pageable);

    /**
     *  Get the "id" traningDataHistory.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    TraningDataHistory findOne(Long id);

    /**
     *  Delete the "id" traningDataHistory.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);

    Page<TraningDataHistory> findByTraning(Long traningId, Pageable page);
}
